/*
 * @Description:test()
 * @Author: rendc
 * @Date: 2021-09-01 10:56:49
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-01 10:58:54
 */
var pattern = /abc/i;
var str = "hello 123 abcd";
console.log(pattern.test(str));//true